//二维数组的声明和使用
import java.util.Arrays;
public class ArrayArray{
	public static void main(String[] args) {
		// 1.声明一个二维数组类型为int
		int[][] arr1 = {{},{}};
		int[][] arr = new int[2][6];
		for (int i = 0; i < arr.length ; i++ ) {
			for (int j = 0;  j < arr[i].length ; j++ ) {
				System.out.print(arr[i][j] + " ");				
			}			
			System.out.println();				
		}	
		System.out.println("-----------------------------------------");		
		for (int i = 0; i < arr.length ; i++ ) {
			for (int j = 0;  j < arr[i].length ; j++ ) {
				arr[i][j] = i + j;		
			}			
			System.out.println();				
		}	
		System.out.println(Arrays.toString(arr));	//[[I@198e2867, [I@12f40c25] 二维数组存储的是两个一维数组的地址


		System.out.println("-----------------------------------------");		
		int[][] brr = new int[3][];
		brr[0] = new int[3];
		brr[1] = new int[4];
		brr[2] = new int[5];
	}
}